[#56] Improved test. Fixed bug.