Correct check for function return value.
Run tests using moosh from current code base
Documentation update