Speeding up scan test a bit