junit tests, ajax calls