Add base tags generation and test for it