[#31]Added tests.