added test; resolves issue #7