new tests

issues #611 and #612