add a test to make sure relative paths inside template functions work correctly
add method handles into the mix