Fixed a small bug introduced by the refactoring (I forgot to change @sessions to @@sessions in one spot)
All tests from tests.rb now work
Added a bunch of tests to ensure the code handles overflows appropriately