Fix spec tests

Make sure the tests don't have unwanted side effects when setting
default api version.