add instance's test
divide test to some files
memory storage bug fix