fixing test to incorporate proxy implementation and add a test