Fixed typo in tests
Put min max checking in
Added converter