rspec still in the works, calculate total and raise error in place