fix unittest error and move other codes to "this"

import this  # :)