update test to deal with asynchronous angular
Merge pull request #1541 from ORCID/workTest2

update test to deal with asynchronous angular
Several improvements in Works