Bugfix. Also added a small test stub.