Added JUnit test for Add and Clear Command