added test for spritesheets and fixed errors accordingly