Data axis bugfix

Add tests for the new functionality, fix a little bug and update the docstring.