tests for external functions