wrote a test for comparing the actions
implemented toString and equals for comparing to actions