tests: add tests for undefined secret

closes #11