Fixed updateTests so it clears before appending