Changes to Ajax and testing implemented