Moved subprocess command in tests to class setup and teardown