write rspec tests for Parser initialize method and data attribute context