1. Fixed typo in db, devices; 2. Major refactoring of test.py(10.0 now)