More unit testing
Added tests for ajax