add assertion for error test to make it show up in test results. adds to #24