Angular js test code