added and fixed tests for galleries. updated tests for users. did some test refactoring & cleaning. added sortable. updated gallery factory