created interface for ExpressionParser
fixed HashDeductor and added small test for HashDeductor