bugfix: domain was not set properly when representer was loaded
bugfix: changed test to return false when it fails