Imported Base.rand to fix rand(Haar)
Changed "using Test" to "using Base.Test"
(Unit tests do not pass, due to "has" and "unsafe_assign" not being defined.)