fix profit test