Added integer check to spec-test