Implemented Test connection functionality