Adding test for memory leak in Validator garbage collection