The code is not in a good shape to add such unit test