Error in tests - failing to allow through array