Minor fix

- Fixing `array.mean()` by returning `undefined` from `[].mean()`
- Updated unit test