gin helper methods tests