added unit test for add/edit functions of Logic