Style fixes on test schema file
Convert schema file to ruby 1.9 style hash
Fix failures related to enum changes

Commit 6e4a810f51b9ed2468b92247ef5568cc9d6dbcc0 changed the implementation
from class_eval to define_method, but missed the access to the constant
versus the access to the constant name.