Remove strdup, it's not c99 compatible
Add pseudo testing of cli