completed unit testing