Fixed compile errors in core tests