Convert tests for weighted dictionary implementation