Fixed compile errors in multiple tests