Started unit testing add function