copy/paste blog test code

See
https://www.mapbox.com/blog/unit-test-blog/