refactored test by usinf create method instead of build