improved error handling in BeanShell specs