more initialization, adding rspec tests