revert methods on api after test