Added a test to check that lastActiveAt is deleted when stop is called on connection

#2778