add unit test for user, event, subject