switch to rspec and guard for testing