print stack trace to expose travis error
added simple while test