Tests for salted table and various bug fixes.