Add prerequisites for unit tests

See #3
Add unit tests for session, mysql, and xml restricted commands