fixed tests so they dont randomly fail