Yes, the unit tests run against ol in debug mode. So TileLayer would also work in the tests.