Added reference results for new unit test.

This is for #196.
Improved error message and changed order of function arguments to a more logical sequence.

This is for #196.
Replace variable aha with xC to use a consistent notation across the whole package.

This is for #196.