Fix flag assignement in the new_axes == NULL case and add flags checking to the tests.
Fix typo in docs.