Seems like you're mixing environment (agent is running under production environment, but your module is placed under development environment), copy your module under /etc/puppetlabs/code/environments/production/modules (as seen below) and test again.
cp -r /etc/puppetlabs/code/environments/development/modules/motd /etc/puppetlabs/code/environments/production/modules/