Implement the select_all command and add tests

Implementation of the select_all command.
Also written some tests for it.

Fixes #39