Testing sets for properness of polynomial mappings