updated dematerialize unit tests to use mockit