Added unit tests for the remaining Math functions.