added tests for assets. updated tests for users, auth and galleries. moved some code to factoy and utilities