Adding unit test for the checkEmpty function, one was missed out.