add testing to baseController
add testing to baseController