Controller and socket tests