fixing before spy assertions