Error handling + test, if empty string is passed to constructor