add interpreter and compiled c test

many small fixes on the way