added some testcode