optimized spec tests