Performing a rapid diagnostic test for malaria