Add test codes for almost all existing methods