Added tests

Tests added to ASTpersistenceTest.scala