Moving ajax wait to CRUD module instead of having them in test module