Tests for layer, notice handler, and some db abstraction tests