add tests for length, lastModified

- add tests for `length()`, `lastModified()`
- fix issues with both in the html impl