Tools for unit test