Workaround spec test failure

A workaround to make the spec tests function. Possibly not the correct way to solve the spec problem.