Added unit tests for vals; improved unit tests for dd