test: share commoon code