Updated to angular v1.2.1 and fixed all unit tests.