complete some unit tests