diff --git a/test/test-yaml.rb b/test/test-yaml.rb
index <HASH>..<HASH> 100644
--- a/test/test-yaml.rb
+++ b/test/test-yaml.rb
@@ -1,3 +1,4 @@
+require 'yaml'
 require_relative '../lib/grayskull/formats/yaml_handler'
 require_relative '../lib/grayskull/formats'
 require_relative '../lib/grayskull/validator'
@@ -5,7 +6,7 @@ require_relative '../lib/grayskull/validator'
 
 path = File.expand_path(File.join(File.dirname(__FILE__), "yaml/file.yml"))
 schema = File.expand_path(File.join(File.dirname(__FILE__), "yaml/schema.yml"))
+yaml = YAML.load(path)
+validator = Grayskull::Validator.new(yaml,schema)
 
-validator = Grayskull::Validator.new(path,schema)
-
-validator.validate
+puts validator.validate
Added test for passing preloaded data