added support for conditional function tests.