add tests, ref #1