cleaned up array passing in tests