sscanf fix and test fix