Fix broken image tests

* Add sample image in test/fixtures
* Load window before tets