testing sigmoid function