Design of customized rehabilitation devices and bench testing system