make auth_encryption_key a parameter

Also add tests for heat::engine

Change-Id: Ic84344060eaad006026fb6b66d569efa3d2592e3
Closes-Bug: #1249280
(cherry picked from commit 9a885b068b90e1e9d89a6ceee7b857b06fc090ea)