test for optional done