Working on tests and example sams