added tests
added warning
introduced setFromPathThrowingException