add a test case for Interaction class