- added double argument to buffer_scale functions
- fixed rounding mode
- raise error from tests::main if some tests doesn't pass