Fix issues with latest version of Angular (1.2.16) and jquery now working wiht tests.