add unit test by picotest
add Repository pattern helper