test refractoring + connection tests