update unit tests so that tests can run online.