Test for custom ref.