Add tests for functional calls