Design, Analysis and Testing Procedures for Synchronous Reluctance and Permanent Magnet Machines