added API test and DB test