Test setSchema
Update docs about setSchema
Add test for getPrimaryKey