Port some of astroweb tests