[api] Re-enabled assertion in read_permission_test