update test to use interface and not specific impl