fixed call to reduce
fixed namespace mapping
implemented spec
travis-ci