spec tests fixed