making test more robust