Added function to get first and last day of week

Created simple unit test for it