Add logout & postgres backend tests