throw error where replay is error
fix test cases