Added a test for action restrictions