Working Tests

Tests now pass against Julia 0.3. Also fixes #13