wrote test specs for user