Fix LF_TESTPROJECT and LF_DATABASE defines
Delete unused tests.