main for test