test creates table if it does not exist