converted tests to mocha and finished model tests