Backported some tests from angular1.2 branch.
Merge pull request #83 from thgreasi/master

Backported some tests from angular1.2 branch.