This no longer tests what it supposed to, you are now passing an instance. But when defining permissions you are supposed to pass classes.