I've changed this but its my first usage of asyncTest so please check if its implemented correctly.