Unit tetsing for resource gallery