Fixed failing test by inverting X and switching inputs