You need to specify your desired nickname in the room. This is the resource of the JID you send to.
For example, to join the room as 'Joe', send your presence stanza to testroom@conference.localhost/Joe
instead of just testroom@conference.localhost
.
Your join stanza also should not include a 'from' attribute, this is added for you by the server. Including one doesn't break anything, but it is pointless (and yours is wrong anyway, it must be a full JID).
Therefore a correct stanza for joining the room as 'Joe':
<presence to='testroom@conference.localhost/Joe' xmlns='jabber:client'>
<x xmlns='http://jabber.org/protocol/muc'/>
</presence>
See XEP-0045: Entering a room for more information.