Testing Ajax with flavour of sexy API