Change the performanceDB.R to the normal code style and add test dir