tests: add sample_regs_user test

This is split off from the PEBS code, as it really doesn't directly
depend on PEBS.