fixed improperly written resistance test