add unit test for angular controller