fix tt.ajax bugs, write tests