SampleSet: added SampleKeyError. And more tests.