Text this: Design and testing of electrical machines