fixed bug.
began writting tests.