Added functionality to sprite test