add minitest
add functional tests