changed reg_source param name, add tests