Testing functional programming