Add analyzer demo and fix tests