added more tests
when has same syntax and logic as given
version 0.0.10