Added JUnit test

added tests for "add" method.