Add test for indirect counter and timer access

Signed-off-by: Michael Buesch <m@bues.ch>