fix spec tests