Small tweaks to make tests pass on julia 0.4

I think this can just be an `isa` test