Merge "Add tests to ensure that retrieved actions match passed in restrictions"