let test functions return 1 for success
generate global vars _sc and _s for err stack
fix read in freed block issue
rename tested func to mne_tos
introduce varcount and funcount