added more parts to test domain, expanded tests, fixed resolving domain attribute