add unit tests for upload_gallery and profile controllers