Add test code for initializations with negative weight