added some unit testing for models and controllers