Fixed up a bug with the > children notation and made more tests for the premission manager