Testing samples from the book Pro AngularJs by Adam Freeman