Updating speed test to new API and better tests.