Addition of Domain library and test file

Apparently didn't get included in the other commits