wrote tests for users controller