[WIP] add testing infrastructure