a little modification to clan_test