tests for the misc functions