Representer tests and bugfixes (Fixes #47)

Made representer tests to work with new standard representers. 
Several bugfixes in representers.