added unit tests for models and views. Fixed error with not starting tests by grunt