Test that closing and deleting notes require authentication