test declaring functions and variables in a shell session
add test for 'history' builtin; see #373