added tests for meta function