add rake test task
add spec helper. fix rake test
fix bundler dependency
add basic support for root, attributes options