Fix viewonline tests