removed array cast, fixed test