fixed a couple of error in the spec tests