add unit test for statusType enum
Remove unnecessary generics from RestCommand