angualr js + rest requests test