writing some tests for the user module