add register flow for test