Update testing environments for junit tests

Setup test environments with a given set of modules (by name). 

Also see #1164.
Extraneous import?