Improve testcases
Improve testcases

 - create apikeys/users on demand (no magic numbers)
 - add some more testcases
 - extract api version into function
 - readability cleanup

Signed-off-by: Florian Pritz <753f544d2d01592750fb4bd29251b78abcfc8ecd@xinu.at>

jreinert/filebin,jreinert/filebin,Bluewind/filebin,jreinert/filebin,Bluewind/filebin,Bluewind/filebin,Bluewind/filebin,jreinert/filebin,jreinert/filebin,jreinert/filebin,Bluewind/filebin