fixup 'optimize variable_info'

remove unused variable
add newline at end of file
add variable_access test case
fixup test