T. M. Bisgaard proved that the ∗-algebra C[z,z,1/zz] has the moment property, that is, each positive linear functional on this ∗-algebra is a moment functional. We generalize this result to polynomials in d variables z1,...,zd. We prove that there exist 3d−2 linear polynomials as denominators such that the corresponding ∗-algebra has the moment property, while for 3 linear polynomials in case d=2 the moment property always fails. Further, it is shown that for the real algebras R[x,y,1/(x2+y2)] (the hermitean part of C[z,z,1/zz]) and R[x,y,x2/(x2+y2),xy/(x2+y2)], all positive semidefinite elements are sums of squares. These results are used to prove that for the semigroup ∗-algebras of Z2, N0×Z and N+:={(k,n)∈Z2:k+n≥0}, all positive semidefinite elements are sums of hermitean squares.