getting tests running and working correctly