move things that are possibly distribution specific to basetest

so we can overload them. Remove also check function, that is dead since
ages