Added return url to success page
Added tests for period
Added tests