AngularJS application for blog post http://www.newtriks.com/2013/04/26/how-to-test-an-angularjs-directive/