Added test case for keyref to figure