Fixed Entity test and made test infrastructure common.
(NB: we now print out all tests run/passed.)