Testing composed functions