integrate ajax in test view