Do not check for updates if running tests

Resolves #1134