Add test for dependency restriction