add layer factories, make sure akka tests shutdown properly