TODO: sessions_test needed.