is this the equals method or scalatest's syntax? If its the equals method, we should be using == instead since in scala it properly handles nulls unlike java's equals.