Fix compiling automated unit tests