test case for fold right