chain then in main of test