fixed Radio class and added unit tests for it