add encoder supports(), add resolver tests, fixes