Merge pull request #147 from blackhydrogen/gallery

Unit tetsing for resource gallery
Added test case codes to all test cases
Fixed typo