adding tests for developer.py

Should have full coverage now and fixed one bug that I found by testing where we built one too few buildings as were being requested.