Make tests not rely on statically compiled classes