Simplified the tests API.