Unittest catched invalid behavior, fixed