remove test of removed assign_device handler
refactor log handling. close #14.

now both types of logs are handled by one code.