TST: lombscargle regression test related to atan vs atan2

Add a regression test for https://github.com/scipy/scipy/issues/3787 fixed by https://github.com/scipy/scipy/pull/3788.