Adding tests, lacking tests for computer algorithm