Start work on tests
Fix test issues with performance.now