add license headers
fix up test format
fix middleware mock mode
0.2.7