Add a test case for extend() before bind().
Change implementation of extend() to work before bind() is called.
Remove extend() overwriting in application.
Adapt test to new behavior.
Fixing some formatting.