use None instead of nan in tests - is a little clearer