added tests for optional max-age on statics

Added tests as tape tests runnable from npm test.

As this is different to the other existing tests I have made this a different pull request.

Related to #7