add chefspec for unit testing
use basename of filename so that state file has only valid chars