Fix tests and use fixtures
Add test accessors for data.dimension
Add doc for query