add test
fix to ERRAI-518