tests for read of a var before definition