Added initial model unit test and rake task