Fix broken tests

qstrncpy was adding null terminator.