Added test gui and fixed(?) reconnect issue