tests for what ends up in the db