Add missing test condition for self-documentation

This commit adds a new assertation that states that when the Apply
function is called on a struct, fields that are not marked with an
inject tag are set to their default value.

Also ran gofmt on the code.