[#46] removed the unnecessary if from test and adhered to the comment