Add TestRejectGivenFolder() and TestAcceptGivenFolder() regression tests