add unitTest and close call