RSpec tests for calculations