added tests for restrictions