Add more tests for all access rules functions.