test function init&print pass