Math package unit tests