fix to test require environment