NaN when there is no measurement

- Add tests