add basic unit tests
add more unit tests (copied from tablespace_spec mostly)