Test error condition for GET /badges