Remove deprecated Problem class

Also added -test flag