Modify tests for building creation

- Add tests and divide them
- Add relative paths to avoid the use of $PYTHONPATH for running tests
Document building creation