modified codequality design and added RAS test