added testing main to stackedchainner