added a simple unit test for cmdAdd

added a simple unit test for cmdAdd