Added tests

Probably a good thing to have, so that nobody reimplements `select` and forgets this behaviour.