Added Ajax and required tests for it