pure and applicative style.
test for Cradle.
relative dir for testing.