Added selfTest