write tests for existing conversion functions