add testing codes