Added base tests for all accessors and fixed a couple of NPEs in the process.