Added test for proper constant lookup