better testcode