add test for methods targeting constants.

add test for issue #26