Fixed syntax error on metadata.rb. Added test