tests for constants in expression visitor