modified anguarjs test