Dynamic Queue with test cases of isEmpty