Removed warning for unused parameters
Fixed expected result
Fixed early loop termination
Removed size_t and %zu, since msvc doesn't understand it