fixed unit testing bugs