add a test for the autorequire feature