Added tests for instance compiling