clean code for Unit tests. datesSpec.js

fix bl tests

added test for leap year to BL tests

typo