sanity fixes for test assertions