Add unit tests for Mode and update unit tests for ErrorCorrectionLevel