changed tests to match dictionary interface