Tests are working in both browser and at command line