testing scripts with angularjs