Cleanup and added notes for further improvements.
Fixed typo expected_durartion. Duration was never actually checked.
Cleanup test.js.
Fixed wrong expected_duration. Now all tests are passing.