add test for getting position of a static extension method (closes #1968)