caption test for undefined