fixed testdb by removing fk contraint to principle db; added config test