add functional test for --require flag