added some unit-tests for the user and costs models
Merge branch 'unit-tests'