Unit test for 'AJAX' badge uploading