some tests and some bug fixes for the expression compiler