Make get_entry return more information for callers

Add test for get_entry
Add valid_entry function to test if a dot is a valid format