Fixes error compiling tests