more fixed point math tests; bugfixes in math functions