Updated code to add a test for qrstep