Implemented collection selectById() method, tests

See #9