Fixed pending tests, removed unused test files, removed most of deprecation wargnings.