Revert "Build testmodule for release builds."

This reverts commit 3cbcb326ea41765c476a4ff3d9adb69e2a6792ff.