Fixed tests, removed unused files.