Added unit tests for angular