Testing for include failure and empty buffer instead of file existence.
Slightly changed exception message and hide warnings in tests.