Fix wrong table key type
Add test for "add" without key