Added an app key.
Added test coverage.