added test for main
[#13]