added metadata engine unit tests