Add include_unpublished option to behavior

Hey William,

Here is an update we have told yesterday about special option `include_unpublished`. I have also updated the documentation according to these changes.

Also I have got 2 errors while running the tests (btw I have added phpunit/phpunit to require-dev section in composer). I have fixed them both.