Creating end to end tests for asynchronous processes using Angular