Don't know the meaning of this test. Remove it or describe.
What you should test is the things in the onsuccess is called or not.