unit test and non-missing handling

Added logic to deal with variables with no missing data. Wrote unit test
for the get_data_from_formula method in the ImputedData class.