add unittest support

add initial support for unittest