replace #merge with relation API calls in calculations_test.

I was looking at the `#count` implementation trying to resolve some issues. While I did not solve the issues yet I streamlined the calculation_tests to use the Relation API in place of the old hash-syntax using #merge.