Tests agains maven downloaded runtime.

Refactores preferences test, passes forge runtime via system property and improves stability od preference tests.