Test compiles

but memory allocation problems occur