Added raw data method tests and code