Test fix: corrected use of should to assert typeof