Added ToArray tests