testing ajax controllers