Updated basic tests.
Fixed a bug on linked_add which caused it to return a wrong address.