Solving tests and ajax class