libmath: add unittest
fix rustdoc compilation