FIX: Fixes #2398

- hasAmount() failed to return true for values <= 0.99 and >= 0.01
- Added unit tests