adds unit test and updates restricted values main