Automating unit test for add