Updated demo code and readme to include expected exceptions