moved resttests into seperate module