Added tests for metadata inspection