Fix argument passing in tests
Add test for notification closing