Fixed bug in new test API.