Tests mostly pass.