Added a test for both finder functions.

This required me to fix the `ClientModel` initializer, which did not
record the layers as categories, thus making all layer changes fail
silently.
Wrote a test for the getter functions.

This required a minor change to the signature of one of the getter
functions, due to a const mismatch.