Fixes for test helper and a view permission issue