Complete motor test code case