Porting prefix test from sks.