grant viewing permissions test & bugs

closes #437, #430