Removing ajax from here will create inconsistent test results