Add test for backward compatibility.
Fix style consistency issue and use four spaces for a tab.