[FIX] undefined variable. [UPDATE] added tests for histc.