refactor; added angular lib for testing