Fixes some invalid tests