Fixed compiler and generator tests, fixed #352.