Minor fixes

- Add decimal accuracy
- Add tests