moved to ruby logger
more strict testing