wait for ajax, cucumber test fixes