Removed needless codes for the test.