add test
add rest as maven dependency