merged testing scanning and testing database interaction into scanResultTest