Implementing decimals and tests for them