Unit tests for AvalonMetadataService