User cache keybit test

This builds on #48 and adds a test for the userbit.