fix #11; 100% test coverage