cvr dynamic- separated tests

separated tests from the main function