[#30]Added tests.