removed a date bug and created a final test