Added unit test to #2
Fix #2 [@robopets to test]