Test unittest

Add unittests for the Test() and Dropin() test functionality, as well as a small correction found running the unittests.