Refactored reactions tests.