Fixed problems with test functions.