fixed bugs, completed unit tests