adding searchByAttenderIntoPeriod() with tests and refactor isAttenderFree()