Unit testing- angular - 1