Move base test class into new utils module