Return type of BaseIdQueries.table changed

Tests introduced.

Version bumped to 0.4.1

Fixes #1