test driver for em algorithm functions