Here you need to differentiate between a queue consumer and a topic subscriber. For topic subscribers you apply the selector to queue; but for queue consumers you still need to create the consumer with selector. Otherwise it breaks one of the stomp test.
Suggested change:

diff --git a/hornetq-server/src/main/java/org/hornetq/core/protocol/stomp/StompSession.java b/hornetq-server/src/main/java/org/hornetq/core/protocol/stomp/StompSession.java
index b3c70d3..bb018ba 100644
--- a/hornetq-server/src/main/java/org/hornetq/core/protocol/stomp/StompSession.java
+++ b/hornetq-server/src/main/java/org/hornetq/core/protocol/stomp/StompSession.java
@@ -266,9 +266,13 @@ public class StompSession implements SessionCallback
             queue = UUIDGenerator.getInstance().generateSimpleStringUUID();
             session.createQueue(SimpleString.toSimpleString(destination), queue, SimpleString.toSimpleString(selector), true, false);
          }
+         
+         ((ServerSessionImpl)session).createConsumer(consumerID, queue, null, false, false);
+      }
+      else
+      {
+         ((ServerSessionImpl)session).createConsumer(consumerID, queue, SimpleString.toSimpleString(selector), false, false);
       }
-      
-      ((ServerSessionImpl)session).createConsumer(consumerID, queue, null, false, false);