complete adding object unit testing