refactored integration tests, added test cases for boundary events