Remove useless property and add unit test.