added unit tests, removed octave button function