Added more tests

Removed unused line
Added second DB script for setting up a master/slave replication with different visibilities