Modernize restrict test
Merge pull request #180 from hunner/fix_restrict

Modernize restrict test