Do unit tests and corner tests for evaluatePrefixNumber