wrote some model tests for user