update test to deal with asynchronous angular