added tests
throwing Error when two valid coordinates are not passed