could you please write a unit test for these if statements?