Add wait for page title in an attempt to fix failing test