Added tests to ensuring the toDash() function works properly