Add tests for "functions" module (#93)