adding test of precision class, needed some bug fixes