Unit test handle validation