api key actor unit tests