added tests for dynamic return types