fixed bug in meta caching from vip and added tests