Code samples from the testing magic [talk given by Zamith](http://blog.zamith.pt/blog/2013/06/02/testing-magic/)