added test to check cases

via github.com