Correct exclusion of metadata.rb and add test
Merge pull request #1339 from rveznaver/exclude_metadata_rb

Correct exclusion of metadata.rb