fix tests and else for roberts refactorings. wait 500ms before ordering an item to let ajax requests complete