use rspec subject declaration instead of inline instantiation.