adding tests for convert functions