Functions used for weight determination test