Massive rework on tests.

Signed-off-by: crynobone <crynobone@gmail.com>