added function to extract week number, and according tests