add space after operator
complete unit tests for `get_resource_type` util function (fixes #3)