fixed the spec tests