Write roll and roll test

Write roll and roll test