table class now fully unit tested