Added test for local definition