(PUP-1100) Create_resource syntax error message spec test

This commit adds a check for the create resource syntax error message.
If there is a syntax error, the error given by puppet master is unclear.
This commits adds a test to check that the error message is correct and
makes sense.

This only happens when the resources are auto imported, which is why I
use a fixture directory.
(PUP-1100) Fix error message with create_resource and auto-loaded class

This commit fixes the error message displayed by PM when a syntax error
is present on an auto-loaded file.