Update tests to be py.test