Updated tests. Added basic key authnetication.