changed Array<string> to string[], and added test