Update test to use new ajax call instead of standard HTTP POST.