prepared for unit testing

Signed-off-by: humanbeen <human.be2n@gmail.com>