Added tests for NumberWithTwoDecimals and fixed the errors they caught.