fix spec to pass all tests