Wrote simple motor test code

Signed-off-by: Tushar Pankaj <tushar.s.pankaj@gmail.com>