[TIMOB-11869] Added haxm detection and unit test.