Write unit tests for CheckNameTransaction.