Add test to scan for registers