Fix acceptance test to wait for tested elements to appear