fixed a bug in test file, deleted some unused functions